﻿<?php require "../global.php";
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";

$adminname=$_REQUEST["UserName"];
$password=$_REQUEST["PassWord"];

	$MyadminClass=new ADMINClass();
	$MyadminClass->adminname=$adminname;
	$MyadminClass->password=md5($password);
	$MyadminClass->login();
	
	if(isset($_SESSION["Login"])){
		
		gourl("Main.html",1);//登陆成功前往
	}
	else{
		//die("用户名或密码错误");
		alert("index.php",1,"用户名或密码错误");
		
 	}
?>